package com.woniu.product.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 充电站表
 * </p>
 *
 * @author LiFangyu
 * @since 2023-02-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_charge_station")
@ApiModel(value="ChargeStation对象", description="充电站表")
public class ChargeStation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "充电站ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "省份")
    private String province;

    @ApiModelProperty(value = "城市")
    private String city;

    @ApiModelProperty(value = "区")
    private String area;

    @ApiModelProperty(value = "街道")
    private String street;

    @ApiModelProperty(value = "坐标系x坐标")
    private Double positionX;

    @ApiModelProperty(value = "坐标系y坐标")
    private Double positionY;

    @ApiModelProperty(value = "与用户的距离")
    @TableField(exist = false)
    private Double distance;

    @ApiModelProperty("可用充电桩数")
    @TableField(exist = false)
    private Integer count;

    @ApiModelProperty(value = "状态;1:开放中 2:未开放")
    private String status;

    @ApiModelProperty(value = "逻辑删除;0:正常 1:删除")
    @TableLogic
    private String isDeleted;

    @ApiModelProperty("数据创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty("数据更新时间")
    @TableField(fill = FieldFill.INSERT)
    private Date updatedTime;


}
